﻿using System;

namespace Program10
{
    class Program
    {
        static void Main(string[] args)
        {
            string pwd1 = "1234ggg割让给56";
            Console.WriteLine("密码明文:{0}", pwd1);
            var endPwd1 = Encryption.GetMd5(pwd1);
            Console.WriteLine("密文;{0}", endPwd1);

            //string pwd1 = "1234ggg割让给56";
            //Console.WriteLine("密码明文:{0}", pwd1);
            //var shaPwd1 = Encryption.GetSHA(pwd1);
            //Console.WriteLine("密码SHA512密文;{0}", shaPwd1);

            //加盐
            //string pwd2 = "1234ggg割让 给56" + "#j54ky.@hifd8f";
            //Console.WriteLine("密码明文:{0}", pwd2);
            //var md5Pwd2 = Encryption.GetMd5(pwd2);
            //Console.WriteLine("密码MD5密文;{0}", md5Pwd2);
            ////再做二次加密(MD5)
            //var finalmd5 = Encryption.GetMd5(md5Pwd2);
            //Console.WriteLine("二次MD5密文;{0}",finalmd5);


            ////再做三次加密(SHA)
            //string sha2 = "1234ggg割  让给56" + "#j54ky.@hifd8f";
            //Console.WriteLine("密码明文:{0}", sha2);
            //var shaPwd2 = Encryption.GetSHA(sha2);
            //Console.WriteLine("密码SHA512密文;{0}", shaPwd2);
            //var twoPwd512 = Encryption.GetSHA(shaPwd2);
            //Console.WriteLine("二次SHA密文;{0}", twoPwd512);
            //var threelPwd512 = Encryption.GetSHA(twoPwd512);
            //Console.WriteLine("三次SHA密文;{0}", threelPwd512);

        }
    }
}
